﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeptInfo.aspx.cs" Inherits="Invoicing.sys.DeptInfo" %>

    <!-- hidden form-->
    <form id="pagerForm" method="post" action="sys/DeptInfo.aspx">
        <input type="hidden" name="status" value="status" />
        <input type="hidden" name="keywords" value="keywords" />
        <input type="hidden" name="numPerPage" value="<%=NumPerPage %>" />
        <input type="hidden" name="pageNum" value="1" />
        <input type="hidden" name="orderField" value="dp_id" />
        <input type="hidden" name="orderDesc" value="desc" />
    </form>


    <!-- head -->
    <div id="navTab" class="tabsPage">
       
           <!--页面头-->
   <div class="pageHeader">
     

        <form id="searchForm" method="post" action="sys/DeptInfo.aspx" rel="pagerForm" onsubmit="return navTabSearch(this);">
        <table class="searchContent">
			<tr>
				<td>
					部门名称：<input type="text" name="deptName"  value="<%= DeptName  %>"/>
				</td>
				<td>
					<select class="combox" name="province" id="seleved">
						<option value="-1">部门等级</option>
						<option value="0">高级</option>
						<option value="1">中级</option>
						<option value="2">低级</option>
					
					</select>
				</td>
				<td>
					创建日期：<input type="text" name="dp_createtime" class="date" readonly="true" value="<%= CreateTime %>" />
				</td>
                <td>  <div class="buttonActive"> <div class="buttonContent"><button type="submit">查 询</button></div></div></td>
			</tr>
		</table>
         </form>

    </div>
    <!--页面主体-->
     <form  onsubmit="return navTabSearch(this);" action="sys/DeptInfo.aspx" method="post"> 
    <div class="pageContent">
        <div class="panelBar">
            <ul class="toolBar">
				<li><a class="add" href="sys/DeptAdd.aspx" target="dialog" maxable="false" mask="true" rel="deptedit" warn="请选择部门！" ><span>添加</span></a></li>
				<li><a class="delete" href="AJAX/SysDeptInfo.ashx?action=del&pageNum=<%= CurrentPageindex %>" postType="string" target="selectedTodo" rel="ids" title="确定要删除部门?"  ><span>删除</span></a></li>
				<li><a class="edit" href="sys/DeptEdit.aspx?did={sid_user}&pageNum=<%=CurrentPageindex %>" maxable="false" mask="true" target="dialog" rel="deptedit" warn="请选择部门！"><span>修改</span></a></li>
			</ul>
        </div>

        <table class="table" layouth="120">
			<thead>
				<tr style=" text-align:center">
                    <th width="80"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
					<th width="80">部门ID</th>
					<th width="180">部门名称</th>
					<th width="180">部门等级</th>
					<th width="180">负责人</th>
					<th width="180">部分介绍</th>
                    <th width="180">创建日期</th>
				</tr>
			</thead>
			<tbody>

	<asp:Repeater ID="DeptList" runat="server">
	<ItemTemplate>

	<tr id="tr2" target="sid_user" rel="<%#DataBinder.Eval(Container.DataItem, "dp_id")%>" style=" text-align:center;font-size:14px"> 
    
    <td><input   name="ids"   type="checkbox" value="<%#DataBinder.Eval(Container.DataItem, "dp_id")%>" /></td>
	<td><%#DataBinder.Eval(Container.DataItem, "dp_id")%> </td>
    <td><%#DataBinder.Eval(Container.DataItem, "dp_namme")%> </td>
	<td><%#DataBinder.Eval(Container.DataItem, "dpleve")%> </td>
	<td><%#DataBinder.Eval(Container.DataItem, "dp_owner")%> </td>
	<td><%#DataBinder.Eval(Container.DataItem, "dp_note")%> </td>
    <td><%#DataBinder.Eval(Container.DataItem, "dp_createtime")%> </td>
	</tr>
	</ItemTemplate>
        </asp:Repeater>

			</tbody>
		</table>
		
		<div class="panelBar">
			<div class="pages">
				<span>显示<%=  NumPerPage %></span>
		<%--	<select class="combox" name="numPerPage" change="navTabPageBreak" param="numPerPage">
					<option value="<%= NumPerPage %>"></option>
					<option value="2">2</option>
					<option value="3">3</option>
					<option value="4">4</option>
				</select>--%>
				<span>共<%= TotalCount %>条</span>
			</div>
			
			<div class="pagination" targetType="navTab" totalCount="<%= TotalCount %>" numPerPage="<%= NumPerPage %>" pageNumShown="10" currentPage="<%= CurrentPageindex %>"></div>

		</div>
    </div>
        </form>
    </div>

